package com.example.jeong.yuejian10.Service;

import com.example.jeong.yuejian10.Bean.CommentBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;


public interface CommentService {
    //获取某条帖子的评论
    @GET("Post/getPostCommentlist")
    Call<List<CommentBean>> getPostComment(@Query("p_id") int p_id);


    //发表反馈
    @GET("Post/addPostComment")
    Call<CommentBean> addComment(
            @Query("p_id") int p_id,
            @Query("u_id") int u_id,
            @Query("info") String commentinfo);

}
